package com.siki.www.clock.vo;


import com.siki.salessystemcommon.entity.City;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author Siki in 2021/6/14
 */

@ApiModel("城市单体信息VO")
@Getter
@Setter
@ToString
@NoArgsConstructor
public class CityInfoVO {
    @ApiModelProperty("id")
    Long id;

    @ApiModelProperty("城市名称")
    String name;

    public CityInfoVO(City city){
        this.id = city.getId();
        this.name = city.getName();
    }
}